<!doctype html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8" />
    <!--  快捷logo -->
    <link rel="icon" type="image/png" href="/static/images/favicon.ico">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />

    <title>寝室信息新增</title>

    <meta content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0' name='viewport' />
    <meta name="viewport" content="width=device-width" />


    <!-- Bootstrap css样式   -->
    <link href="/assets/css/bootstrap.min.css" rel="stylesheet" />


    <!-- Animation library for notifications   -->
    <link href="/assets/css/animate.min.css" rel="stylesheet"/>

    <!--  Light Bootstrap Table core CSS    -->
    <link href="/assets/css/light-bootstrap-dashboard.css?v=1.4.0" rel="stylesheet"/>

    <!--     Fonts and icons     -->
    <link href="https://cdn.bootcdn.net/ajax/libs/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
    <link href='http://fonts.googleapis.com/css?family=Roboto:400,700,300' rel='stylesheet' type='text/css'>
    <link href="/assets/css/pe-icon-7-stroke.css" rel="stylesheet" />
</head>
<body>

<div class="wrapper">
    <div class="sidebar" data-color="purple" data-image="/assets/img/sidebar-5.jpg">

        <div class="sidebar-wrapper">
            <div class="logo">
                <a href="#" class="simple-text">
                    学校管理系统
                </a>
            </div>

            <ul class="nav">
                <li class="active">
                    <a th:href="@{/user/index.do}">
                        <i class="pe-7s-home"></i>
                        <p>首页</p>
                    </a>
                </li>

                <li class="active" >
                    <a th:href="@{/collage/tocollage.do}">
                        <i class="pe-7s-display2"></i>
                        <p>学院管理</p>
                    </a>
                </li>

                <li class="active">
                    <a th:href="@{/teacher/toteacher.do}" >
                        <i class="pe-7s-study"></i>
                        <p>
                            辅导员管理
                        </p>
                    </a>
                </li>

                <li class="active">
                    <a th:href="@{/class/toclass.do}" >
                        <i class="pe-7s-users"></i>
                        <p>
                            班级管理
                        </p>
                    </a>
                </li>


                <li class="active">
                    <a th:href="@{/dorm/todorm.do}" >
                        <i class="pe-7s-umbrella"></i>
                        <p>
                            宿舍管理
                        </p>
                    </a>
                </li>

                <li class="active">
                    <a th:href="@{/student/tostudent.do}" >
                        <i class="pe-7s-id"></i>
                        <p>
                            学生管理
                        </p>
                    </a>
                </li>


            </ul>
        </div>
    </div>

    <div class="main-panel">
        <nav class="navbar navbar-default navbar-fixed">
            <div class="container-fluid">
                <div class="navbar-header">
                    <button type="button" class="navbar-toggle" data-toggle="collapse">
                        <span class="sr-only">Toggle navigation</span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </button>
                </div>
                <div class="collapse navbar-collapse">

                    <ul class="nav navbar-nav navbar-right">
                        <li>
                            <a href="#">
                                欢迎<span style="color:chocolate;" th:text="${session.user.getUsername()}"></span>
                            </a>
                        </li>
                        <li>
                            <a th:href="@{/user/logout.do}">
                                退出
                            </a>
                        </li>
                    </ul>
                </div>
            </div>
        </nav>


        <div class="content">
            <div class="container-fluid">
                <div class="row">
                    <div class="col-md-12">
                        <div class="card">
                            <div class="header">
                                <h4 class="title">班级信息添加</h4>
                            </div>
                            <div class="content">
                                <form action="/dorm/addsave.do" method="post">
                                    <div class="row">
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label>寝室楼名</label>
                                                <input type="text" class="form-control"   name="dormName">
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label>寝室楼层</label>
                                                <input type="text" class="form-control"   name="dormFloor">
                                            </div>
                                        </div>
                                    </div>

                                    <div class="row">
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label>寝室号</label>
                                                <input type="text" class="form-control" name="dormNo">
                                            </div>
                                        </div>
                                    </div>

                                    <div class="row">
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label>寝室备注</label>
                                                <input type="text" class="form-control" name="dormBz">
                                            </div>
                                        </div>
                                    </div>
                                    <button type="button" class="btn btn-info btn-fill pull-right" onclick="location.href='/dorm/todorm.do'" style="margin-right: 5%">返回</button>
                                    <button type="submit" class="btn btn-info btn-fill pull-right" style="margin-right: 2%">提交</button>

                                    <div class="clearfix"></div>
                                </form>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>



        <footer class="footer">
            <div class="container-fluid">
                <p class="copyright pull-right">
                    Copyright © 2024 王利强、高瑞峰、周昱龙、梁瑞天、田德军.</a>
                </p>
            </div>
        </footer>

    </div>
</div>


</body>

<!--   Core JS Files   -->
<script src="/assets/js/jquery.3.2.1.min.js" type="text/javascript"></script>
<script src="/assets/js/bootstrap.min.js" type="text/javascript"></script>

<!--  Charts Plugin -->
<script src="/assets/js/chartist.min.js"></script>

<!--  Notifications Plugin    -->
<script src="/assets/js/bootstrap-notify.js"></script>

<!-- Light Bootstrap Table Core javascript and methods for Demo purpose -->
<script src="/assets/js/light-bootstrap-dashboard.js?v=1.4.0"></script>

<!-- Light Bootstrap Table DEMO methods, don't include it in your project! -->
<script src="/assets/js/demo.js"></script>


</html>
